/* 登录样式 */
.login {
    position: relative;
}

.login h2 {
    padding: 5% 0;
}

.login img {
    filter: blur(5px);
}

.login>div {
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.4);
    top: 35%;
    right: 20%;
    padding: 1% 3% 2%;
    position: absolute;
    text-align: center;
    box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.5);
}

#username,
#password {
    outline: none;
    border: none;
    background: transparent;
    box-shadow: 0 2px #0096D1;
    font-size: 15px;
}

#username:focus,
#password:focus {
    box-shadow: 0 2px turquoise;
}

#user_msg,
#password_msg {
    display: inline-block;
    font-size: 14px;
    height: 14 px;
    color: red;
}

.m-t {
    margin-top: 5px;
}

.login button {
    padding: 2% 15%;
    /* background-color: #0096D1; */
    background-color: transparent;
    border: 1px solid #0096D1;
    outline: none;
    color: #0096D1;
    cursor: pointer;
    transition-property: background, color;
    transition-duration: .2s;
}

.login button:hover {
    background-color: #0096D1;
    color: #ffffff;
    transition-property: background, color;
    transition-duration: .2s;
}

/* 页面全局样式 */
header {
    border-bottom: 2px solid #000000;
}

header>div {
    width: 70%;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
}

.container {
    display: flex;
    width: 70%;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.1);
}

/* 左侧导航栏 */
.nav {
    background-color: rgba(0, 0, 0, 0.6);
    width: 15%;
    height: 85vh;
    text-align: center;
    color: #ffffff;
}

.nav h1 {
    padding: 10% 0;
}

.nav-list>li {
    border-bottom: 1px solid #aaaaaa;
}

.nav-item a {
    box-sizing: border-box;
    color: #ffffff;
    display: inline-block;
    width: 100%;
    padding: 4% 3%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item a:hover {
    background-color: rgba(0, 0, 0, 0.6);
    color: #1395D8;
}

.active {
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: #1395D8 !important;
}

.nav-item a img {
    width: 16px;
    margin-right: 10px;
}

.nav-item a span {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #aaaaaa;
    border-right: 2px solid #aaaaaa;
    transform: rotate(45deg);
    margin-left: 10px;
    margin-bottom: 3px;
    transition: all 0.5s;
}

.nav-item a>.none {
    border: none;
    visibility: hidden;
}

.nav-item>ul a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.nav-item>ul {
    overflow: hidden;
    height: 0;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.5s;
}

.nav-item>.open+ul {
    height: 72px;
    transition: all 0.5s;
}

.nav-item>.open>span {
    transform: rotate(225deg);
    margin-bottom: -7px;
    transition: all 0.5s;
}

.index {
    width: 85%;
}

/* 首页样式 */
.index .main{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.index .main #admin_title{
    margin-bottom: 20px;
}
#v1 {
    width: 100%;
}
#admin_title>span{
    position: relative;
    display: inline-block;
}
.color{
    animation-name: color;
    animation-duration: 1s;
    animation-iteration-count: 2;
    animation-timing-function: linear;
    animation-direction: alternate;
}
@keyframes color{
    50%{
        color: #1395D8;
        transform: scale(2);
    }
    to{
        color: turquoise;
        transform: scale(0.5);
    }
}

/* 列表 */
.list {
    padding: 2% 5% 0;
}

.list>.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #aaaaaa;
    padding-bottom: 2%;
}
.list>.top button{
    padding: 0;
    color: #000;
}

.list table {
    margin-top: 2%;
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

.list table tr {
    line-height: 35px;
}

.list thead tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.8);
}

.list tbody tr:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.list tbody tr:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.5);
}

.list tbody tr span {
    color: #1395D8;
    font-size: 20px;
    line-height: 50px;
}

.list tbody a>img {
    width: 14px;
    margin-right: 2px;
    vertical-align: middle;
}

.list tbody a {
    color: #1395D8;
}

.list tbody a:hover {
    color: #D4237A;
}

/* 添加 */
.list .add {
    margin-top: 2%;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.list .add input {
    outline: none;
    border: none;
    background: transparent;
    font-size: 15px;
}

/* 用户注册 */
.add>.reg {
    padding: 5% 5%;
}

.reg>div {
    display: flex;
    align-items: center;
}

.reg>div img {
    width: 16px;
}

.reg>label {
    display: inline-block;
}

.reg .info {
    padding: 10px 20px;
    margin-bottom: 1%;
    background-color: rgba(0, 150, 209, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
}

.reg label {
    color: red;
    margin-left: 5px;
}

.reg button {
    color: #0096D1;
    width: 100px;
    height: 35px;
    outline: none;
    border: 1px solid #0096D1;
    border-radius: 5px;
    margin-top: 10px;
    margin-left: 56px;
}

.reg button:hover {
    background-color: #0096D1;
    color: #ffffff;
}

/* 弹出遮掩层 */
.container-model {
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
}

.container-model.show {
    display: block;
    height: 100vh;
}

.model {
    padding: 3%;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 680px;
    min-width: 550px;
    animation-name: modelopen;
    animation-duration: 2s;
    text-align: center;
}

.model>a {
    color: #ababab;
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 30px;
}

/* 图片预览样式 */
#preview {
    display: inline-block;
    width: 100px;
    height: 100px;
    position: relative;
    background: #fff;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 50%;
    border: 1px solid #aaa;
}

#avatar {
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
    z-index: 5;
}

/* 修改个人资料 */
.input-style {
    width: 50%;
    padding: 1%;
    outline: none;
    border: 1px solid #aaa;
    border-radius: 5px;
}

.input-style:focus {
    border: 1px solid #0096D1;
}

.label-style {
    display: block;
    margin: 20px 0;
}

.span-style {
    font-size: 14px;
    color: red;
}

#user-info label>span {
    color: red;
    margin-right: 2px;
}

#user-info .none {
    display: inline-block;
    margin: 0;
    margin-left: 2px;
    margin-right: 8px;
}